<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">角色信息</h4>
</div>

<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/User/Role/edit')}" id="editRoleForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <div class="box-body">

            <div class="form-group">
                <label>角色名称</label>
                <input type="text" name="name" class="form-control" id="name" required placeholder="name" value="{$info.name?=$info.name}">
            </div>


        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>

    </form>
    <!-- /.box-body -->
</div>

<script>
    $(function() {
        ajax_form_submit("editRoleForm");
    });
</script>